package com.meida.module.bus.provider.service.impl;

import com.meida.common.mybatis.base.service.impl.BaseServiceImpl;
import com.meida.common.mybatis.entity.EntityMap;
import com.meida.common.mybatis.model.ResultBody;
import com.meida.common.mybatis.query.CriteriaQuery;
import com.meida.module.bus.client.entity.srmapi.basedata.SrmContractsmatdtl;
import com.meida.module.bus.provider.mapper.srm.SrmContractsmatdtlMapper;
import com.meida.module.bus.provider.service.SrmContractsmatdtlService;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(rollbackFor = Exception.class)
@RefreshScope
public class SrmContractsmatdtlServiceImpl extends BaseServiceImpl<SrmContractsmatdtlMapper, SrmContractsmatdtl> implements SrmContractsmatdtlService {
    @Override
    @Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true)
    public ResultBody beforePageList(CriteriaQuery<SrmContractsmatdtl> cq, SrmContractsmatdtl bwb, EntityMap requestMap) {
        cq.eq(SrmContractsmatdtl.class, "contractsId");
        cq.orderByAsc("contractsmatdtl.rowNo");
        return ResultBody.ok();
    }
}
